<?php
// +----------------------------------------------------------------------
// | Longbing [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright Chengdu longbing Technology Co., Ltd.
// +----------------------------------------------------------------------
// | Website http://longbing.org/
// +----------------------------------------------------------------------
// | Sales manager: +86-13558882532 / +86-13330887474
// | Technical support: +86-15680635005
// | After-sale service: +86-17361005938
// +----------------------------------------------------------------------


use think\facade\Route;


Route::group('admin', function () {
    Route::group('AdminAppointment', function () {
        Route::any('appList', 'AdminAppointment/appList');
    });


    //地区列表
    Route::group('AdminArea', function () {
        Route::any('areaList', 'AdminArea/areaList');
        Route::any('areaAdd', 'AdminArea/areaAdd');
        Route::any('areaOneSelect', 'AdminArea/areaOneSelect');
        Route::any('areaUpdate', 'AdminArea/areaUpdate');
        Route::any('statusUpdate', 'AdminArea/statusUpdate');
    });


    //案例列表
    Route::group('AdminCase', function () {
        Route::any('caseList', 'AdminCase/caseList');
        Route::any('caseAdd', 'AdminCase/caseAdd');
        Route::any('caseUpdate', 'AdminCase/caseUpdate');
        Route::any('statusUpdateAll', 'AdminCase/statusUpdateAll');
        Route::any('statusUpdate', 'AdminCase/statusUpdate');
        Route::any('diylist', 'AdminCase/diylist');
    });


    //栏目列表
    Route::group('AdminColumn', function () {
        Route::any('columnList', 'AdminColumn/columnList');
        Route::any('columnAdd', 'AdminColumn/columnAdd');
        Route::any('columnUpdate', 'AdminColumn/columnUpdate');
        Route::any('columnType', 'AdminColumn/columnType');
        Route::any('checkData', 'AdminColumn/checkData');
    });


    //动态列表
    Route::group('AdminDynamic', function () {

        Route::any('dynList', 'AdminDynamic/dynList');

        Route::any('dynUpdate', 'AdminDynamic/dynUpdate');

        Route::any('siteSelect', 'AdminDynamic/siteSelect');

        Route::any('dynUpdateV2', 'AdminDynamic/dynUpdateV2');

        Route::any('dynAdd', 'AdminDynamic/dynAdd');


    });

    //评论列表
    Route::group('AdminEvaluate', function () {
        Route::any('evaList', 'AdminEvaluate/evaList');
        Route::any('styleUpdate', 'AdminEvaluate/styleUpdate');
    });


    //户型居室列表
    Route::group('AdminHousewear', function () {
        Route::any('housewearList', 'AdminHousewear/housewearList');
        Route::any('housewearAdd', 'AdminHousewear/housewearAdd');
        Route::any('housewearUpdate', 'AdminHousewear/housewearUpdate');
    });



    //大师团队列表
    Route::group('AdminMaster', function () {
        Route::any('masterList', 'AdminMaster/masterList');
        Route::any('masterAdd', 'AdminMaster/masterAdd');
        Route::any('masterUpdate', 'AdminMaster/masterUpdate');
        Route::any('masterDel', 'AdminMaster/masterDel');
        Route::any('selectStaff', 'AdminMaster/selectStaff');
    });



    //面积筛选列表
    Route::group('AdminMeasure', function () {
        Route::any('mList', 'AdminMeasure/mList');
        Route::any('mAdd', 'AdminMeasure/mAdd');
        Route::any('mUpdate', 'AdminMeasure/mUpdate');
    });



    //文章列表
    Route::group('AdminNews', function () {
        Route::any('newsList', 'AdminNews/newsList');
        Route::any('newsAdd', 'AdminNews/newsAdd');
        Route::any('cateList', 'AdminNews/cateList');
        Route::any('newsUpdate', 'AdminNews/newsUpdate');
        Route::any('diylist', 'AdminNews/diylist');
    });



    //文章分类列表
    Route::group('AdminNewsCate', function () {
        Route::any('cateList', 'AdminNewsCate/cateList');
        Route::any('cateAdd', 'AdminNewsCate/cateAdd');
        Route::any('cateUpdate', 'AdminNewsCate/cateUpdate');
    });


    //评论报价记录
    Route::group('AdminOfferRecord', function () {
        Route::any('offerList', 'AdminOfferRecord/offerList');
        Route::any('offerUpdate', 'AdminOfferRecord/offerUpdate');

        Route::any('customerList', 'AdminOfferRecord/customerList');

        Route::any('customerAdd', 'AdminOfferRecord/customerAdd');

        Route::any('customerUpdate', 'AdminOfferRecord/customerUpdate');

        Route::any('schemeList', 'AdminOfferRecord/schemeList');
    });



    //价格列表
    Route::group('AdminPrice', function () {
        Route::any('priceList', 'AdminPrice/priceList');
        Route::any('priceAdd', 'AdminPrice/priceAdd');
        Route::any('priceUpdate', 'AdminPrice/priceUpdate');
        Route::any('changeStatus', 'AdminPrice/changeStatus');
        Route::any('checkData', 'AdminPrice/checkData');
    });



    //进度列表
    Route::group('AdminProgress', function () {
        Route::any('progressList', 'AdminProgress/progressList');
        Route::any('progressAdd', 'AdminProgress/progressAdd');
        Route::any('progressUpdate', 'AdminProgress/progressUpdate');
    });



    //编辑插件配置
    Route::group('AdminSetting', function () {

        Route::any('pulgSettingUpdate', 'AdminSetting/pulgSettingUpdate');

        Route::any('pulgSettingInfo', 'AdminSetting/pulgSettingInfo');

        Route::any('configInfo', 'AdminSetting/configInfo');

        Route::any('configUpdate', 'AdminSetting/configUpdate');
    });


    //工地列表
    Route::group('AdminSite', function () {
        Route::any('siteList', 'AdminSite/siteList');
        Route::any('siteSetting', 'AdminSite/siteSetting');
        Route::any('siteAdd', 'AdminSite/siteAdd');
        Route::any('siteUpdate', 'AdminSite/siteUpdate');
        Route::any('statusUpdateAll', 'AdminSite/statusUpdateAll');
        Route::any('statusUpdate', 'AdminSite/statusUpdate');
        Route::any('siteSetting', 'AdminSite/siteSetting');
        Route::any('selectStaff', 'AdminSite/selectStaff');
        Route::any('getUser', 'AdminSite/getUser');
        Route::any('diylist', 'AdminSite/diylist');
    });


    //风格列表
    Route::group('AdminStyle', function () {
        Route::any('styleList', 'AdminStyle/styleList');
        Route::any('styleAdd', 'AdminStyle/styleAdd');
        Route::any('styleUpdate', 'AdminStyle/styleUpdate');
    });




});


//应用
Route::group('app', function () {

    //预约首页
    Route::group('IndexAppointment', function () {
        Route::any('appIndex', 'IndexAppointment/appIndex');
        Route::any('appAdd', 'IndexAppointment/appAdd');
    });

    //案列列表
    Route::group('IndexCase', function () {
        Route::any('caseList', 'IndexCase/caseList');
        Route::any('caseIndex', 'IndexCase/caseIndex');
        Route::any('caseInfo', 'IndexCase/caseInfo');
        Route::any('dynList', 'IndexCase/dynList');
        Route::any('companyDes', 'IndexCase/companyDes');
        Route::any('diylist', 'IndexCase/diylist');

        Route::any('configInfo', 'IndexCase/configInfo');

        Route::get('staffCaseList', 'IndexCase/staffCaseList');

        Route::post('selectCase', 'IndexCase/selectCase');
    });


    //收藏列表
    Route::group('IndexCollect', function () {
        Route::any('collectList', 'IndexCollect/collectList');
        Route::any('collectUpdate', 'IndexCollect/collectUpdate');
        Route::any('getModel', 'IndexCollect/getModel');
    });

    //动态列表
    Route::group('IndexDynamic', function () {
        Route::any('dynList', 'IndexDynamic/dynList');
        Route::any('dynAdd', 'IndexDynamic/dynAdd');
        Route::any('dynDel', 'IndexDynamic/dynDel');
    });


    //大师团队列表
    Route::group('IndexMaster', function () {
        Route::any('masterList', 'IndexMaster/masterList');
    });

    //文章列表
    Route::group('IndexNews', function () {
        Route::any('newsList', 'IndexNews/newsList');
        Route::any('newsIndex', 'IndexNews/newsIndex');
        Route::any('newsInfo', 'IndexNews/newsInfo');
        Route::any('diylist', 'IndexNews/diylist');
    });


    //报价首页
    Route::group('IndexOffer', function () {

        Route::any('offerIndex', 'IndexOffer/offerIndex');

        Route::any('offerAdd', 'IndexOffer/offerAdd');

        Route::any('schemeAdd', 'IndexOffer/schemeAdd');
    });

   //工地列表
    Route::group('IndexSite', function () {
        Route::any('siteList', 'IndexSite/siteList');
        Route::any('siteIndex', 'IndexSite/siteIndex');
        Route::any('siteInfo', 'IndexSite/siteInfo');
        Route::any('ivIng', 'IndexSite/ivIng');
        Route::any('dynList', 'IndexSite/dynList');
        Route::any('siteUser', 'IndexSite/siteUser');
        Route::any('updateIv', 'IndexSite/updateIv');
        Route::any('staffSite', 'IndexSite/staffSite');
        Route::any('userSite', 'IndexSite/userSite');
        Route::any('diylist', 'IndexSite/diylist');
    });


});





//===============================================================oldapi

//预约首页
Route::group('IndexAppointment', function () {
    Route::any('appIndex', 'IndexAppointment/appIndex');
    Route::any('appAdd', 'IndexAppointment/appAdd');
});

//案列列表
Route::group('IndexCase', function () {
    Route::any('caseList', 'IndexCase/caseList');
    Route::any('caseIndex', 'IndexCase/caseIndex');
    Route::any('caseInfo', 'IndexCase/caseInfo');
    Route::any('dynList', 'IndexCase/dynList');
    Route::any('companyDes', 'IndexCase/companyDes');
    Route::any('diylist', 'IndexCase/diylist');

    Route::any('configInfo', 'IndexCase/configInfo');
});


//收藏列表
Route::group('IndexCollect', function () {
    Route::any('collectList', 'IndexCollect/collectList');
    Route::any('collectUpdate', 'IndexCollect/collectUpdate');
    Route::any('getModel', 'IndexCollect/getModel');
});

//动态列表
Route::group('IndexDynamic', function () {
    Route::any('dynList', 'IndexDynamic/dynList');
    Route::any('dynAdd', 'IndexDynamic/dynAdd');
    Route::any('dynDel', 'IndexDynamic/dynDel');
});


//大师团队列表
Route::group('IndexMaster', function () {
    Route::any('masterList', 'IndexMaster/masterList');
});

//文章列表
Route::group('IndexNews', function () {
    Route::any('newsList', 'IndexNews/newsList');
    Route::any('newsIndex', 'IndexNews/newsIndex');
    Route::any('newsInfo', 'IndexNews/newsInfo');
    Route::any('diylist', 'IndexNews/diylist');
});


//报价首页
Route::group('IndexOffer', function () {
    Route::any('offerIndex', 'IndexOffer/offerIndex');
    Route::any('offerAdd', 'IndexOffer/offerAdd');

    Route::any('schemeAdd', 'IndexOffer/schemeAdd');

    Route::any('customerList', 'IndexOffer/customerList');


});

//工地列表
Route::group('IndexSite', function () {
    Route::any('siteList', 'IndexSite/siteList');
    Route::any('siteIndex', 'IndexSite/siteIndex');
    Route::any('siteInfo', 'IndexSite/siteInfo');
    Route::any('ivIng', 'IndexSite/ivIng');
    Route::any('dynList', 'IndexSite/dynList');
    Route::any('siteUser', 'IndexSite/siteUser');
    Route::any('updateIv', 'IndexSite/updateIv');
    Route::any('staffSite', 'IndexSite/staffSite');
    Route::any('userSite', 'IndexSite/userSite');
    Route::any('diylist', 'IndexSite/diylist');
});



Route::group('AdminAppointment', function () {
    Route::any('appList', 'AdminAppointment/appList');
});


//地区列表
Route::group('AdminArea', function () {
    Route::any('areaList', 'AdminArea/areaList');
    Route::any('areaAdd', 'AdminArea/areaAdd');
    Route::any('areaOneSelect', 'AdminArea/areaOneSelect');
    Route::any('areaUpdate', 'AdminArea/areaUpdate');
    Route::any('statusUpdate', 'AdminArea/statusUpdate');
});


//案例列表
Route::group('AdminCase', function () {
    Route::any('caseList', 'AdminCase/caseList');
    Route::any('caseAdd', 'AdminCase/caseAdd');
    Route::any('caseUpdate', 'AdminCase/caseUpdate');
    Route::any('statusUpdateAll', 'AdminCase/statusUpdateAll');
    Route::any('statusUpdate', 'AdminCase/statusUpdate');
    Route::any('diylist', 'AdminCase/diylist');
});


//栏目列表
Route::group('AdminColumn', function () {
    Route::any('columnList', 'AdminColumn/columnList');
    Route::any('columnAdd', 'AdminColumn/columnAdd');
    Route::any('columnUpdate', 'AdminColumn/columnUpdate');
    Route::any('columnType', 'AdminColumn/columnType');
    Route::any('checkData', 'AdminColumn/checkData');
});


//动态列表
Route::group('AdminDynamic', function () {
    Route::any('dynList', 'AdminDynamic/dynList');
    Route::any('dynUpdate', 'AdminDynamic/dynUpdate');
});

//评论列表
Route::group('AdminEvaluate', function () {
    Route::any('evaList', 'AdminEvaluate/evaList');
    Route::any('styleUpdate', 'AdminEvaluate/styleUpdate');
});


//户型居室列表
Route::group('AdminHousewear', function () {
    Route::any('housewearList', 'AdminHousewear/housewearList');
    Route::any('housewearAdd', 'AdminHousewear/housewearAdd');
    Route::any('housewearUpdate', 'AdminHousewear/housewearUpdate');
});



//大师团队列表
Route::group('AdminMaster', function () {
    Route::any('masterList', 'AdminMaster/masterList');
    Route::any('masterAdd', 'AdminMaster/masterAdd');
    Route::any('masterUpdate', 'AdminMaster/masterUpdate');
    Route::any('masterDel', 'AdminMaster/masterDel');
    Route::any('selectStaff', 'AdminMaster/selectStaff');
});



//面积筛选列表
Route::group('AdminMeasure', function () {
    Route::any('mList', 'AdminMeasure/mList');
    Route::any('mAdd', 'AdminMeasure/mAdd');
    Route::any('mUpdate', 'AdminMeasure/mUpdate');
});


//文章分类列表
Route::group('AdminNewsCate', function () {
    Route::any('cateList', 'AdminNewsCate/cateList');
    Route::any('cateAdd', 'AdminNewsCate/cateAdd');
    Route::any('cateUpdate', 'AdminNewsCate/cateUpdate');
});



//文章列表
/*Route::group('AdminNews', function () {
    Route::any('newsList', 'AdminMeasure/newsList');
    Route::any('newsAdd', 'AdminMeasure/newsAdd');
    Route::any('cateList', 'AdminMeasure/cateList');
    Route::any('newsUpdate', 'AdminMeasure/newsUpdate');
    Route::any('diylist', 'AdminMeasure/diylist');
});*/

//文章列表
Route::group('AdminNews', function () {
    Route::any('newsList', 'AdminNews/newsList');
    Route::any('newsAdd', 'AdminNews/newsAdd');
    Route::any('cateList', 'AdminNews/cateList');
    Route::any('newsUpdate', 'AdminNews/newsUpdate');
    Route::any('diylist', 'AdminNews/diylist');
});



//评论报价记录
Route::group('AdminOfferRecord', function () {
    Route::any('offerList', 'AdminOfferRecord/offerList');
    Route::any('offerUpdate', 'AdminOfferRecord/offerUpdate');
});



//价格列表w
Route::group('AdminPrice', function () {
    Route::any('priceList', 'AdminPrice/priceList');
    Route::any('priceAdd', 'AdminPrice/priceAdd');
    Route::any('priceUpdate', 'AdminPrice/priceUpdate');
    Route::any('changeStatus', 'AdminPrice/changeStatus');
    Route::any('checkData', 'AdminPrice/checkData');
});



//进度列表
Route::group('AdminProgress', function () {
    Route::any('progressList', 'AdminProgress/progressList');
    Route::any('progressAdd', 'AdminProgress/progressAdd');
    Route::any('progressUpdate', 'AdminProgress/progressUpdate');
});



//编辑插件配置
Route::group('AdminSetting', function () {
    Route::any('pulgSettingUpdate', 'AdminSetting/pulgSettingUpdate');
    Route::any('pulgSettingInfo', 'AdminSetting/pulgSettingInfo');

});


//工地列表
Route::group('AdminSite', function () {
    Route::any('siteList', 'AdminSite/siteList');
    Route::any('siteSetting', 'AdminSite/siteSetting');
    Route::any('siteAdd', 'AdminSite/siteAdd');
    Route::any('siteUpdate', 'AdminSite/siteUpdate');
    Route::any('statusUpdate', 'AdminSite/statusUpdate');
    Route::any('statusUpdateAll', 'AdminSite/statusUpdateAll');
    Route::any('siteSetting', 'AdminSite/siteSetting');
    Route::any('selectStaff', 'AdminSite/selectStaff');
    Route::any('getUser', 'AdminSite/getUser');
    Route::any('diylist', 'AdminSite/diylist');
});


//风格列表
Route::group('AdminStyle', function () {
    Route::any('styleList', 'AdminStyle/styleList');
    Route::any('styleAdd', 'AdminStyle/styleAdd');
    Route::any('styleUpdate', 'AdminStyle/styleUpdate');
});


